package cn.gok.hotelback.service;

import cn.gok.hotelback.entity.RoomOrder;
import java.util.List;
import cn.gok.hotelback.entity.OrderReview;
import cn.gok.hotelback.entity.User;

public interface RoomOrderService {
    boolean createOrder(RoomOrder order);
    List<RoomOrder> findOrdersByPhoneSuffix(String phoneSuffix);
    boolean checkin(String orderId, Integer roomId, String guestInfo);
    boolean checkout(String roomNumber);
    RoomOrder getCheckedInOrderByRoomNumber(String roomNumber);
    List<RoomOrder> findOrdersByUserId(Integer userId);
    boolean submitReview(String orderId, Integer rating, String content);
    List<OrderReview> getUserReviews(Integer userId);
    boolean appendReview(String orderId, String content);
    boolean updateReview(Integer reviewId, Integer rating, String content);
    boolean deleteReview(Integer reviewId);
    boolean deleteAllReviewsByReviewId(Integer reviewId);
    User getUserById(Integer userId);
    java.util.List<RoomOrder> findAllOrders();
    OrderReview getReviewByOrderId(String orderId);
} 